﻿
using System;
using System.IO;
namespace Codemonk.Updater.Client.Common
{
    /// <summary>
    /// 升级客户端
    /// </summary>
    internal interface IUpdateClient
    {
        /// <summary>
        /// 请求地址
        /// </summary>
        string RequestAddress { get; set; }
        /// <summary>
        /// 发送升级指令
        /// </summary>
        /// <param name="file">索要的文件</param>
        /// <param name="appid">应用ID</param>
        /// <param name="error">发送错误</param>
        /// <param name="back">返回流</param>
        void SendUpdateInstruction(string file, string appid, Action<Exception> error, Action<MemoryStream> back);
    }
}
